package com.cskaoyan.mapper;

import com.cskaoyan.bean.CskaoyanmallComment;
import com.cskaoyan.bean.CskaoyanmallCommentExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CskaoyanmallCommentMapper {
    long countByExample(CskaoyanmallCommentExample example);

    int deleteByExample(CskaoyanmallCommentExample example);

    List<CskaoyanmallComment> selectByExample(CskaoyanmallCommentExample example);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    CskaoyanmallComment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CskaoyanmallComment record, @Param("example") CskaoyanmallCommentExample example);

    int updateByExample(@Param("record") CskaoyanmallComment record, @Param("example") CskaoyanmallCommentExample example);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(CskaoyanmallComment record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CskaoyanmallComment record);



    List<CskaoyanmallComment> selectAllByUserIdOrValueId(@Param("userId") Integer userId, @Param("valueId") Integer valueId);



}